<script>
export default {
  name: "Detail",
  mounted() {
    console.log(this.id)
    console.log(this.title)
    console.log('DETAIL', this);
  },
  props: ['id', 'title']
}
</script>

<template>
  <ul>
    <!--    通过this.$route.query获得参数-->
    <li>{{ this.$route.params.id }}</li>
    <li>{{ this.$route.params.title }}</li>
  </ul>
</template>

<style scoped>

</style>